package com.itheima.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("setmeal_dish")
public class SetmealDish {

    @TableId(type = IdType.ASSIGN_ID)//雪花算法
    private Long id;//主键
    private Long setmealId;//套餐id
    private String dishId;//菜品Id
    private String name;//菜品名称
    private Double price;//菜品原价
    private Integer copies;//份数
    private Integer sort;//排序
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
    private Long createUser;//创建人
    private Long updateUser;//修改人
    private Integer isDeleted;//是否删除


}
